package longcaisuyun.longcai.com.net;

import com.google.gson.Gson;
import com.zcx.helper.http.AsyCallBack;
import com.zcx.helper.http.note.HttpInlet;

import org.json.JSONObject;

import longcaisuyun.longcai.com.suyunbean.DingDanPaiHangBang;

/**
 * Created by Administrator on 2016/4/14.
 */
@HttpInlet(Net.DINGDANPAI)
public class PostDdph extends WHAsyPost<DingDanPaiHangBang> {

    DingDanPaiHangBang paiHangNetData;
    public String driverid = "";

    public PostDdph(String driverid, AsyCallBack asyCallBack) {
        super(asyCallBack);
        this.driverid = driverid;
    }

    @Override
    protected DingDanPaiHangBang parser(JSONObject object) {
        System.out.println(object.toString());
        Gson dingDanPaiHangData = new Gson();
        paiHangNetData = dingDanPaiHangData.fromJson(object.toString(), DingDanPaiHangBang.class);
        return paiHangNetData;
    }



}
